{% set location = 'account' %}
{% extends 'layout.html' %}
{% block title %}
创建用户
{% endblock %}
{% from "_page.html" import render_errors %}
{%block content%}
<ul class="breadcrumb">
    <li><a href="{{url_for('account_backend.index')}}">用户列表</a><span class="divider">/</span></li>
    <li class="active">创建用户</li>
</ul>
<div id="register">
<h2>创建新用户</h2>
    <form class="form-horizontal" method="POST">
        {{ form.hidden_tag() }}
        <div class="control-group">
            {{form.username.label(class="control-label")}}
            <div class="controls">
              {{ form.username() }} {{ render_errors(form.username) }}
            </div>
        </div>
        <div class="control-group">
            {{form.email.label(class="control-label")}}
            <div class="controls">
              {{ form.email() }} {{ render_errors(form.email) }}
            </div>
        </div>
        <div class="control-group">
            {{form.password.label(class="control-label")}}
            <div class="controls">
                {{ form.password() }} {{ render_errors(form.password) }}
            </div>
        </div>
        <div class="control-group">
            {{form.password_again.label(class="control-label")}}
            <div class="controls">
                {{ form.password_again() }} {{ render_errors(form.password_again) }}
            </div>
        </div>
        <div class="form-actions">
            {{form.submit(class="btn btn-primary")}}
        </div>
    </form>
</div>
{% endblock %}